CC = gcc
CF = -O3 -Wall -I../inc -Iinc
LF = -lm

TARGET =	testgraphics 	\
			backendDriven	\
			measure			\
			attractor1		\
			attractor2		\
			attractor3		\
			sinewave		\
			typo





SOURCE = $(addsuffix .c, $(TARGET))
OBJ = $(addsuffix .o, $(TARGET))
DEPENDENCY = $(addsuffix .d, $(TARGET))


all: $(TARGET)

depend: $(DEPENDENCY)

%.d: %.c
	$(CC) -MM -MD -MP $(CF) $<

%.o: %.c
	$(CC) $(CF) -o $@ -c $<

%:%.o
	$(CC) -o $@ $< $(LF)

clean:
	rm -f $(TARGET) $(DEPENDENCY) $(OBJ)

clean-temp:
	rm -f $(DEPENDENCY)

-include $(DEPENDENCY)
